module.exports = class extends think.Model {
  queryDataOfPage(page, condition, fields = '*') {
    const where = think.snakeObject(condition);
    return this.where(where).page(page.page, page.pageSize).field(fields).order('id desc').select();
  }
  queryDataCount(condition) {
    const where = think.snakeObject(condition);
    return this.where(where).count();
  }
};
